package com.fanyue.modules.face.controller;

import com.fanyue.core.request.R;
import com.fanyue.modules.face.service.FaceEngineService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@AllArgsConstructor
@RequestMapping("face/user")
public class FaceUserController {

	private final FaceEngineService faceEngineService;


	@GetMapping("data")
	public R getUserFaceData(
		@RequestParam("userId") Long userId
	) {
		return faceEngineService.getUserFaceData(userId);
	}

	/**
	 * 分页
	 */
	@PostMapping("/confirm")
	public R confirm(@RequestBody List<Long> ids) {
		return faceEngineService.confirm(ids);
	}
}
